<template>
	<view>
		<div>
			<h1>个人中心</h1>
			<div style="margin-top: 40px;">
			<van-button type="warning" @click="test()">双向绑定</van-button>
			
			<!-- <van-button type="warning" @click="test()"></van-button> -->
			</div>
			<!-- <div :v-html="info.img">{{info.img}}123</div> -->
			
			<h2 style="margin-top: 40px;">{{number}}</h2>
			<h1 v-html="info.img">2
				<!-- <img :src="info.img"/> -->
				
			</h1>
			<uni-card
				v-for="(item,index) in list"
			    :title="item.Title"
			    mode="style"
			    :is-shadow="true"
			    thumbnail="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg"
			    extra="Dcloud 2019-05-20 12:32:19"
			    note="Tips"
			>
			        <p v-html="item.Content"></p>
			</uni-card>
			
			
			<!-- <p v-for="(item,index) in list"> {{item.Title}}</p> -->
		</div>
	</view>
</template>

<script>

import uniList from '@/components/uni-list/uni-list.vue'
import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
import uniCard from "@/components/uni-card/uni-card"

	export default {
		data() {
			return {
				list:[],
				number:0,
				info:[]
			}
		},
		onLoad() {
			console.log(this.$store.state.Arr)
			this.$http.get('api/v1/wx/company/jobfair/company/code?id=373&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8venAudG9wOjUyMDAvYXBpL3YxL3d4L2NvbXBhbnkvbG9naW4iLCJpYXQiOjE1Njk0NjE1NDQsImV4cCI6MTU2OTQ2NTE0NCwibmJmIjoxNTY5NDYxNTQ0LCJqdGkiOiI5bVo1NjVaeVVuNDFCOGF2Iiwic3ViIjozNzMsInBydiI6ImNmZTdlYzk5YTIzZjQzODhlN2YxZDVmYjg3MDgzNzVjODU0ZWRhNjQifQ.SVIRbT7XJrnkL7lM5FJ8uARuAr1hFwky8Ulkwdr5m7s', {
				params: {userName: 'name', password: '123456'}, /* 会加在url上 */
				header: {}, /* 会覆盖全局header1 */
				dataType: 'json',
				responseType: 'text'
			}).then(res => {
				
				// this.list=res.Message.post
				this.info=res.data
				console.log(this.info)
			}).catch(err => {

			})
			
			// console.log(http)
			
			
		},
		methods: {
			test(){
				this.number++
			}
		},
		components: {uniList,uniListItem,uniCard}

		}
</script>

<style>
	.row {
		height: 44px;
		margin-bottom: 15px;
	}
	div{
		border: 0px solid  red;
		margin: auto;
		width: 100%;
	}
</style>
